package com.tx.admin.modules.base.entity;

import com.tx.admin.core.entity.CardEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;

@Entity
@Data
@ApiModel("系统实体")
public class SystemEntity extends CardEntity{
	
	@ApiModelProperty("是否默认")
	private Boolean selected;

	@ApiModelProperty("是否真实开启修改")
	private Boolean openSave;
	//
	@ApiModelProperty("是否真实开启删除")
	private Boolean openDelete;

	//是否开启函数权限
	@ApiModelProperty("是否开启函数权限")
	private Boolean openDataFunction;

	//是否开启数据权限
	@ApiModelProperty("是否开启数据权限")
	private Boolean openDataPermission;


	@Override
	public void init() {
		super.init();
		if(this.openDataFunction == null){
			this.openDataFunction = false;
		}
		if(this.openDataPermission == null){
			this.openDataPermission=false;
		}
		if(this.openDelete == null){
			this.openDelete=false;
		}

	}
}
